﻿//Service to display Customers
app.factory('CustomerService', ['$http', function ($http) {
		var CustomerService = {};
		CustomerService.GetCustomers = function () {
				return $http.get('/Home/GetCustomers');
		};
		return CustomerService;
}]);


//Service to display Items
app.factory('ItemsService', ['$http', function ($http) {
		var ItemsService = {};
		ItemsService.GetItems = function () {
				return $http.get('/Home/GetItems');
		};
		return ItemsService;
}]);


//Service to display Orders
app.factory('OrdersService', ['$http', function ($http) {
		var OrdersService = {};
		OrdersService.GetOrders = function () {
				return $http.get('/Home/GetOrders');
		};
		return OrdersService;
}]);
